projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e773fb
)
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
author
Jim Blandy
<jimb@redhat.com>
Wed, 19 May 1993 00:19:16 +0000
(
00:19
+0000)
committer
Jim Blandy
<jimb@redhat.com>
Wed, 19 May 1993 00:19:16 +0000
(
00:19
+0000)
menu bars.
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index 9b9ecab6f3c6ff2f3c79ca2f61a54e886f962271..3e272cae31f04e27802c4c8e34e50656dc2a40a2 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-895,6
+895,13
@@
x_set_menu_bar_lines (f, value, oldval)
int nlines;
int olines = FRAME_MENU_BAR_LINES (f);
+ /* Right now, menu bars don't work properly in minibuf-only frames;
+ most of the commands try to apply themselves to the minibuffer
+ frame itslef, and get an error because you can't switch buffers
+ in or split the minibuffer window. */
+ if (FRAME_MINBUF_ONLY_P (f))
+ return;
+
if (XTYPE (value) == Lisp_Int)
nlines = XINT (value);
else